Let 'browse-url-interactive-arg' return more values for NEW-WINDOW-FLAG
authorJim Porter <jporterbugs@gmail.com>
Fri, 8 Mar 2024 05:55:45 +0000 (21:55 -0800)
committerJim Porter <jporterbugs@gmail.com>
Sun, 10 Mar 2024 21:05:09 +0000 (14:05 -0700)
commit46afc91c9f7e6ee6a7917537c83052e0877fa4f2
treeef9cc8ec38efe69fbf82357d610affeef4bff755
parentc17ecd2dcd27b73d673df51ce66f4b188afff6db
Let 'browse-url-interactive-arg' return more values for NEW-WINDOW-FLAG

Previously it always returned t or nil for NEW-WINDOW-FLAG, but now it
can return the actual prefix arg when appropriate.  This lets functions
for 'browse-url-browser-function' consult it and do more things than
just open a new window or not (for example, you could use "C--" as the
prefix arg to do something special in a custom function).

* lisp/net/browse-url.el (browse-url-interactive-arg): Use 'xor' to
adjust the value of 'current-prefix-arg'.
(browse-url): Update docstring.
lisp/net/browse-url.el